package com.chen.gulimall.gulimallproduct.dao;

import com.chen.gulimall.gulimallproduct.entity.AttrAttrgroupRelationEntity;
import com.chen.gulimall.gulimallproduct.entity.AttrGroupEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chen.gulimall.gulimallproduct.vo.SpuItemAttrGroupVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 属性分组
 * 
 * @author mr.chen
 * @email 3061634906@qq.com
 * @date 2022-04-18 22:06:56
 */
@Mapper
public interface AttrGroupDao extends BaseMapper<AttrGroupEntity> {

    void deleteBatchRelation(@Param("entities") List<AttrAttrgroupRelationEntity> entities);

    List<SpuItemAttrGroupVo> getGroupAttrForSpu(@Param("spuId") Long spuId, @Param("catalogId") Long catalogId);
}
